get_votes_sorted_by_vote_power
@mount("votes.get_votes_sorted_by_vote_power")
query get_votes_sorted_by_vote_power( page_cursor: text, sort_direction: text, prop_id: rowid, account_id: byte_array?, filter_state: text): paged_result
Retrieves a paginated and sorted list of votes for a specific proposal, ordered by vote power. The query is used to fetch, sort, and navigate through votes based on their vote power.
Return
A paginated response containing a sorted list of votes by vote power and the updated cursor for the next page.
Parameters
page_cursor
A cursor representing the starting point for pagination.
sort_direction
The sort direction for the votes by vote power. Accepted values are "asc", "desc", or "none".
prop_id
The ID of the proposal for which votes are being retrieved.
account_id
(Optional) The account ID of the citizen to filter votes.
filter_state
A string to filter votes by their state. Defaults to an empty string.